I have worked with AS2 LocalConnection, but this time I wanted to check what are the new options included with AS3 localConnection. LC is used for creating communication between the SWFs. Check out the following two swfs which is created in AS3. Moreover everything is same about LC in AS2 and AS3 and only the difference is event listeners.

Sender SWF:
Receiver SWF:
Sender:

package{
    import flash.display.*;
    import flash.net.*;
    import flash.events.*;

    public class FirstClassDoc extends Sprite{
        private var senderConnect:LocalConnection;
        public function FirstClassDoc():void{
            trace("Document Initiated");
            senderConnect = new LocalConnection();
            senderConnect.addEventListener(StatusEvent.STATUS,onStatusEvt);
            send_btn.addEventListener(MouseEvent.CLICK, onSendClick);
            //senderConnect.send("lc_id", "callFromSender","Checking");
        }
        private function onSendClick(evt:Event){
            senderConnect.send("lc_id", "callFromSender", send_txt.text);
        }
        private function onStatusEvt(evt:StatusEvent){
            trace(evt.level);
        }
    }
}


Receiver:
package{
    import flash.display.*;
    import flash.net.*;
    import flash.events.StatusEvent;

    public class SecondClassDoc extends Sprite{
        private var receiverConnection:LocalConnection;
        public function SecondClassDoc():void{
            trace("Document 2 Initiated");
            receiverConnection = new LocalConnection();
            receiverConnection.client = this;
            receiverConnection.connect("lc_id");
        }
        public function callFromSender(str:String){
            lc_txt.text = str;
        }
    }
}